﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{

    enum Npctype
    {
            Task,
            Shop,
            Iron
    }
    abstract class Npc
    {
        protected string npcname;
        protected Npctype type;

        public string NpcName
        {
            get { return this.npcname; }
            set { this.npcname = value; }
        }
        public Npctype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public  Npc(string npcname,Npctype type) 
            {
            this.npcname = npcname;
            this.type = type;
        }


        public abstract void Speak();

    }
}
